]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
welcomeDialog: Hide overview when taking tour
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 19 Feb 2021 16:11:14 +0000 (17:11 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 19 Feb 2021 16:18:50 +0000 (17:18 +0100)
The dialog is shown at session start, which right now means in the
regular session, however the plan is to start the session in the
overview. When that happens, the "Take the Tour" button should get
the user to the Tour without additonal actions.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1699>

js/ui/welcomeDialog.js

index 0b6dc493997583ddb86a1a7aee8ab8a8a9851b96..cf6540fe230e3fec6a914eed0c0be04691d6a0e4 100644 (file)
@@ -5,6 +5,7 @@ const { Clutter, GObject, Shell, St } = imports.gi;
 
 const Config = imports.misc.config;
 const Dialog = imports.ui.dialog;
+const Main = imports.ui.main;
 const ModalDialog = imports.ui.modalDialog;
 
 var DialogResponse = {
@@ -51,8 +52,10 @@ class WelcomeDialog extends ModalDialog.ModalDialog {
     }
 
     _sendResponse(response) {
-        if (response === DialogResponse.TAKE_TOUR)
+        if (response === DialogResponse.TAKE_TOUR) {
             this._tourAppInfo.launch(0, -1, Shell.AppLaunchGpu.APP_PREF);
+            Main.overview.hide();
+        }
 
         this.close();
     }